<%@ page language="java" contentType="text/html; charset=US-ASCII"
	pageEncoding="US-ASCII"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<link type="text/css" rel="stylesheet" href="css/orderStyle.css">
</head>
<body>

	<%@ page import="it.unisa.udocs.data.*"%>
	<%
	String path = "";
	Ricercatore ricercatore = (Ricercatore) session.getAttribute("ricercatore");
	if(ricercatore.getRuolo().equals("direttore_dip")) {
		path = "headerDirettore.jsp";
	}
	else if(ricercatore.getRuolo().equals("membro_area_sci")) {
		path = "headerComitato.jsp";
	}
	else if(ricercatore.getRuolo().equals("ricercatore")) {
		path = "headerRicercatore.jsp";
	}
	
	%>
	<jsp:include page="<%=path%>">
		<jsp:param name="" value="" />
	</jsp:include>

	
	<script type="text/javascript" src="js/list.js"></script>
	<script type="text/javascript" src="js/ricercaProdotto.js"></script>
	<script type="text/javascript" src="js/noty/packaged/jquery.noty.packaged.min.js"></script>
	
	<div id="container" class="search">
	
	<form class="form-horizontal" > 
		<div class="form-group">
			<label for="tipologia" class="col-sm-2 control-label">Tipologia</label>
			<div class="col-sm-6">
				<select name="PROD_TIP" class="form-control" id="tipologia">
					<option></option>
					<option value="articolo_libro">Articolo libro</option>
					<option value="articolo_rivista">Articolo rivista</option>
					<option value="monografia">Monografia</option>
					<option value="brevetto">Brevetto</option>
					<option value="proceeding">Proceeding</option>
					<option value="curatela">Curatela</option>
					<option value="altro">Altro</option>
				</select>
			</div>
		</div>

		<div class="form-group">
			<label for="anno" class="col-sm-2 control-label">Anno</label>
			<div class="col-sm-6">
				<input type="text" name="PROD_ANNO_PUBB" class="form-control"
					id="anno" placeholder="Inserisci un anno">
			</div>
		</div>

		<div class="form-group">
			<label for="titolo" class="col-sm-2 control-label">Titolo</label>
			<div class="col-sm-6">
				<input type="text" name="PROD_TIT" class="form-control" id="titolo"
					placeholder="Inserisci un titolo">
			</div>
		</div>

		<div class="form-group">
			<button type="button"
				class="btn btn-warning col-sm-4 col-sm-offset-3"
				data-toggle="collapse" data-target="#avanzate">Avanzate</button>

		</div>

		<div id="avanzate" class="collapse">
			<div class="form-group">
				<label for="nome" class="col-sm-2 control-label">Nome</label>
				<div class="col-sm-6">
					<input type="text" name="RICER_NOME" class="form-control" id="nome"
						placeholder="Inserisci un nome">
				</div>
			</div>

			<div class="form-group">
				<label for="cognome" class="col-sm-2 control-label">Cognome</label>
				<div class="col-sm-6">
					<input type="text" name="RICER_COGN" class="form-control"
						id="cognome" placeholder="Inserisci un cognome">
				</div>
			</div>

			<div class="form-group">
					<label for="dipartimento" class="col-sm-2 control-label">Dipartimento</label>
					<div class="col-sm-6">
				
					<select name="DIPART_NOME" class="form-control" id="dipartimento">
						
					</select>
			
					</div>
				</div>

			<div class="form-group">
					<label for="area_scientifica" class="col-sm-2 control-label">Area
						scientifica</label>
					<div class="col-sm-6">
						
							<select name="AREA_SCI_NOME" class="form-control" id="area_scientifica">
						
					</select>
					</div>
				</div>
		</div>


		<div id="form-group">
			<button type="reset" class="btn btn-default col-sm-2 col-sm-offset-2" onClick = "removeClasses()">Annulla</button>
		</div>

		<div id="form-group">
			<button id="ricercaBtn" type="button" 
				class="btn btn-default col-sm-2 col-sm-offset-2 search-btn-submit" onClick="controlProdotto()">Cerca</button>
		</div>
		
		 
  </form> 
</div><!--  FINE DIV CONTAINER SEARCH HIDDEN -->



		
	
				
	
			<!-- Fine Risultati Ricerca -->
			
	<!-- Inizio Lista Prodotti -->
	<div id="container_search_result" class="search-result-panel">

		<div class="panel panel-warning">

			<div class="panel-heading">
				<h4>Risultati Ricerca</h4>
			</div>
			
			<div class="well" style="padding-top: 0px; overflow:auto; height: 500px;">
				<!-- Table -->
				<div class="add-scroll" style="height: 100%;">

					<div class="list-group" id="prodotti">

						<table style="margin-top:15px;">
							<tr>
								<td style='width: 40%;'>
									<button class="btn btn-warning sort" data-sort="titolo">Titolo</button>
								</td>
								<td style='width: 40%;'>
									<button class="btn btn-warning sort" data-sort="autori">Autori</button>
								</td>
								<td style='width: 40%;'>
									<button class="btn btn-warning sort" data-sort="pubblico">Pubblico</button>
								</td>
								<td style='width: 40%;'>
									<button class="btn btn-warning sort" data-sort="data">Data</button>
								</td>
							</tr>
						</table>


						<ul class="list"  id="list_search_result">
					 
					 
					 </ul> 
					</div>  

				</div>
			</div>
		</div>
	</div>
 <!-- FINE LISTA PRODOTTI -->
	
	<%@include file="footer.jsp"%>
</body>
</html>